home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / patches / 586dx20.lha / InstallerScript < prev    next >
Text File  |  1995-05-23  |  9KB  |  388 lines

  1. ;**************************************************
  2. ;
  3. ;$VER: e586DX Emulation Installer v1.9 (24 Feb 1995)
  4. ;
  5. ; Title:
  6. ;    EMPLANT's e586DX Emulation Software Installer
  7. ; Description:
  8. ;    The Commodore Installer Script for EMPLANT's
  9. ;    e586DX emulation module software.
  10. ;
  11. ; Installer script by Jim Drew
  12. ;
  13. ;**************************************************
  14.  
  15. (set true 1)
  16. (set false 0)
  17. (set quote "\"")
  18. (set nothing "")
  19. (set WB2 (< 2293760 (getversion "exec.library" (resident)))) ; true if under 2.0
  20.  
  21. (set mode 0)                ;default to 32 bit mode
  22.  
  23. (set EMPLANT_dir (getassign "EMPLANT"))
  24. (set c_dir (getassign "C"))
  25. (set libs_dir (getassign "LIBS"))
  26. (set fonts_dir (getassign "FONTS"))
  27. (set devs_dir (getassign "DEVS"))
  28. (set s_dir (getassign "S"))
  29.  
  30. (set Src_c "OurPC:PC_EMU/c/")
  31. (set Src_s "OurPC:PC_EMU/s/")
  32. (set Src_libs "OurPC:PC_EMU/libs/")
  33. (set Src_fonts "OurPC:PC_EMU/fonts/")
  34. (set Src_devs "OurPC:PC_EMU/devs/")
  35. (set Src_main "OurPC:PC_EMU/")
  36. ;(set Src_Launcher "OurPC:PC_EMU/Launcher/")
  37. (set Src_docs "OurPC:PC_EMU/Documentation/")
  38. (set Src_ROMS "OurPC:PC_EMU/ROM_Images/")
  39. (set Src_Video "OurPC:PC_EMU/Video_Drivers/")
  40. ;(set Src_Logo "OurPC:PC_EMU/Logos/")
  41. (set Src_ExtIO "OurPC:PC_EMU/Ext_IO/")
  42.  
  43. (if  (<> EMPLANT_dir nothing)
  44.      (if  (askbool
  45.                (prompt "\n\n\nAt least one EMPLANT emulation module has been "
  46.                "detected in the root drawer: \n\n"
  47.                quote EMPLANT_dir quote
  48.                "\n\nDo you want the update installed into this drawer?")
  49.                (help
  50.                "\n\n\nThe installer has determined that you already have a "
  51.                "some version of an EMPLANT emulation module installed "
  52.                "on your system.  If this is wrong or you want the update "
  53.                "installed elsewhere, select 'NO', otherwise select 'YES'."
  54.                )
  55.                (default 1)
  56.           )
  57.                (set is_update true) 
  58.  
  59. ;else ask where to put software
  60.  
  61.                (
  62.                (set is_update false)
  63.                (set EMPLANT_dir
  64.                (askdir
  65.                     (prompt "Where would you like the updated software "
  66.                     "installed?\n"
  67.                     "'EMPLANT' will be automatically appended.")
  68.                     (help @askdir-help)
  69.                     (default @default-dest)
  70.                )
  71.                )
  72.  
  73.                (set EMPLANT_dir
  74.                (tackon EMPLANT_dir "EMPLANT")
  75.                )
  76.  
  77.                (makedir EMPLANT_dir
  78.                (infos)
  79.                )
  80.           )
  81.      )
  82. )
  83.  
  84. ; EMPLANT: was not previously assigned, so ask where to make it
  85. (if  (= EMPLANT_dir nothing)
  86.           (
  87.           (set EMPLANT_dir
  88.                (askdir
  89.                     (prompt "Where would you like the software installed? "
  90.                     "'EMPLANT' will be automatically appended.")
  91.                     (help @askdir-help)
  92.                     (default @default-dest)
  93.                )
  94.           )
  95.  
  96.           (set EMPLANT_dir
  97.           (tackon EMPLANT_dir "EMPLANT")
  98.           )
  99.  
  100.           (makedir EMPLANT_dir
  101.           (infos)
  102.           )
  103.      )
  104. )
  105.  
  106.           (set EMU_Dir
  107.           (tackon EMPLANT_dir "PC")
  108.           )
  109.  
  110.           (makedir EMU_dir
  111.           (infos)
  112.           )
  113.  
  114. (set @default-dest EMU_dir)
  115.  
  116. (complete 10)
  117.  
  118. ; ask user to locate LIBS: directory
  119.  
  120. (set libs_dir
  121.      (askdir
  122.           (prompt "Please locate your LIBS: directory.")
  123.           (help @askdir-help)
  124.           (default libs_dir)
  125.           (newpath)
  126.      )
  127. )
  128.  
  129. (working omp "...Please Wait...")
  130.  
  131. (copyfiles
  132.      (prompt "Select file(s) to be copied into your LIBS: directory:")
  133.      (help "\n\n\n\n\nThis will copy the necessary "
  134.      "libraries into your system's LIBS: directory.\n\n\n\n\n\n\n"
  135.      @copylib-help)
  136.      (source Src_libs)
  137.      (dest libs_dir)
  138.      (pattern "(#?.library#?)")
  139.      (confirm)
  140. )
  141.  
  142. (complete 20)
  143.  
  144. ; ask user to locate DEVS: directory
  145.  
  146. (set devs_dir
  147.      (askdir
  148.           (prompt "Please locate your DEVS: directory")
  149.           (help @askdir-help)
  150.           (default devs_dir)
  151.      )
  152. )
  153.  
  154. (working omp "...Please Wait...")  
  155.  
  156. (copyfiles
  157.      (prompt "Select file(s) to be copied into your DEVS: directory:")
  158.      (help "\n\n\n\n\nThis will copy the device drivers for the use "
  159.      "with EMPLANT's various I/O ports.\n\n\n\n\n\n\n"
  160.      @copyfiles-help)
  161.      (source Src_devs)
  162.      (dest DEVS_dir)
  163.      (pattern "#?")
  164.      (confirm)
  165. )
  166.  
  167. (complete 40)
  168.  
  169. (working omp "...Please Wait...")
  170.  
  171. ; Copy utilities
  172.    
  173. (set EMPLANT_dir
  174.      (copyfiles
  175.           (prompt "Select files to be copied to the EMPLANT: directory:")
  176.           (help "\n\n\n\n\nThis will copy all of the utilities for the "
  177.           "EMPLANT hardware and the e586DX emulation.\n\n\n\n\n\n\n"
  178.           @copyfiles-help)
  179.           (source Src_main)
  180.           (dest EMPLANT_dir)
  181.           (pattern "(Conv#?|Diag#?|Dump#?|HardFile#?|MAC_HDSetup#?)")
  182.           (confirm)
  183.      )
  184. )
  185.  
  186. (complete 50)
  187.  
  188. ; Copy over the e586DX EMULATION programs
  189.  
  190. (working omp "...Please Wait...")
  191.    
  192. (set EMU_dir
  193.      (copyfiles
  194.           (prompt "Select files to be copied to the EMPLANT:PC/ directory:")
  195.           (help "\n\n\n\n\n\nThis will copy the e586DX emulation's main "
  196.           "programs.\n\n\n\n\n\n\n"
  197.           @copyfiles-help)
  198.           (source Src_main)
  199.           (dest EMU_dir)
  200.           (pattern "(e586DX#?|e586SX#?)")
  201.           (confirm)
  202.      )
  203. )
  204.  
  205. (complete 60)
  206.  
  207. ;create Video_Drivers directory
  208.    
  209. (set VideoDrvr_dir
  210. (cat EMU_dir)
  211. )
  212. (set VideoDrvr_dir
  213. (tackon VideoDrvr_dir "Video_Drivers")
  214. )
  215.  
  216. (makedir VideoDrvr_dir
  217. (infos)
  218. )
  219.  
  220. (working omp "...Please Wait...")
  221.  
  222. (copyfiles
  223.      (prompt "Select file(s) to be copied into your Video_Drivers directory:")
  224.      (help "\n\n\n\n\nThis will copy the video drivers to the proper "
  225.      "directory.  ALL e586DX video drivers must reside in your "
  226.      "'\EMPLANT:PC/Video_Drivers\' directory.\n\n\n\n\n\n"
  227.      @copyfiles-help)
  228.      (source Src_video)
  229.      (dest VideoDrvr_dir)
  230.      (pattern "(#?)")
  231.      (confirm)
  232. )
  233.  
  234. (complete 70)
  235.  
  236. ;create Fonts directory
  237.    
  238. (set OurFonts_dir
  239. (cat EMU_dir)
  240. )
  241. (set OurFonts_dir
  242. (tackon OurFonts_dir "Fonts")
  243. )
  244.  
  245. (makedir OurFonts_dir
  246. (infos)
  247. )
  248.  
  249. (working omp "...Please Wait...")
  250.  
  251. (copyfiles
  252.      (prompt "Select font(s) to be copied into your Fonts directory:")
  253.      (help "\n\n\n\n\nThis will copy the necessary fonts to the proper "
  254.      "directory.  ALL e586DX fonts must reside in your "
  255.      "'\EMPLANT:PC/Fonts\' directory.\n\n\n\n\n\n"
  256.      @copyfiles-help)
  257.      (source Src_Fonts)
  258.      (dest OurFonts_dir)
  259.      (pattern "(#?)")
  260.      (confirm)
  261. )
  262.  
  263. (complete 70)
  264.  
  265. ;create ExtIO directory
  266.  
  267. (set ExtIODrvr_dir
  268. (cat EMU_dir)
  269. )
  270. (set ExtIODrvr_dir
  271. (tackon ExtIODrvr_dir "Ext_IO")
  272. )
  273.  
  274. (makedir ExtIODrvr_dir
  275. (infos)
  276. )
  277.  
  278. (working omp "...Please Wait...")
  279.  
  280. (copyfiles
  281. (prompt "Select file(s) to be copied into your Ext_IO directory:")
  282.      (help "\n\n\n\n\nThis will copy the external I/O drivers to the proper "
  283.      "directory.  ALL e586DX external I/O drivers must reside in your "
  284.      "'\EMPLANT:PC/Ext_IO\' directory.\n\n\n\n\n\n"
  285.      @copyfiles-help)
  286.      (source Src_ExtIO)
  287.      (dest ExtIODrvr_dir)
  288.      (pattern "(#?)")
  289.      (confirm)
  290. )
  291.  
  292. (complete 80)
  293.  
  294. ;create Logos directory
  295. ;
  296. ;(set Logos_dir
  297. ;(cat EMU_dir)
  298. ;)
  299. ;(set Logos_dir
  300. ;(tackon Logos_dir "Logos")
  301. ;)
  302. ;(makedir Logos_dir
  303. ;(infos)
  304. ;)
  305. ;
  306. ;(working omp "...Please Wait...")
  307. ;
  308. ;(copyfiles
  309. ;     (prompt "Select file(s) to be copied into your Logos directory:")
  310. ;     (help "\n\n\n\n\nThis will copy the boot logos to the proper "
  311. ;     "directory.  ALL e586DX logos must reside in your "
  312. ;     "'\EMPLANT:PC/Logos\' directory.\n\n\n\n\n\n"
  313. ;     @copyfiles-help)
  314. ;     (source Src_logo)
  315. ;     (dest logos_dir)
  316. ;     (pattern "(#?logo#?)")
  317. ;     (confirm)
  318. ;)
  319.  
  320. (complete 90)
  321.  
  322. ;create Documentation directory
  323.  
  324. (set Docs_dir
  325. (cat EMU_dir)
  326. )
  327. (set Docs_dir
  328. (tackon Docs_dir "Documentation")
  329. )
  330.  
  331. (makedir Docs_dir
  332. (infos)
  333. )
  334.  
  335. (working omp "...Please Wait...")
  336.  
  337. (copyfiles
  338.      (prompt "Select file(s) to be copied Documentation directory:")
  339.      (help "\n\n\n\nThis will copy various documentation and "
  340.      "IFF pictures to your documentation directory.  ALL e586DX emulation "
  341.      "documentation should reside in your "
  342.      "'\EMPLANT:PC/Documenation\' directory.\n\n\n\n\n\n"
  343.      @copyfiles-help)
  344.      (source Src_docs)
  345.      (dest Docs_dir)
  346.      (pattern "#?")
  347.      (confirm)
  348. )
  349.  
  350. (complete 95)
  351.  
  352. ;create ROM_Images directory
  353.  
  354. (set ROM_dir
  355. (cat EMU_dir)
  356. )
  357. (set ROM_dir
  358. (tackon ROM_dir "ROM_Images")
  359. )
  360.  
  361. (makedir ROM_dir
  362. (infos)
  363. )
  364.  
  365. (working omp "...Please Wait...")
  366.  
  367. (copyfiles
  368.      (prompt "Select ROM Image(s) and Related Files:")
  369.      (help "\n\n\n\n\nThis will copy your ROM image(s) from your "
  370.      "original installation (if applicable).  ALL ROM image files "
  371.      "must be in your '\EMPLANT:PC/ROM_Images\' directory.\n\n\n\n\n\n"
  372.      @copyfiles-help)
  373.      (source Src_ROMS)
  374.      (dest ROM_dir)
  375.      (pattern "#?")
  376.      (confirm)
  377. )
  378.  
  379. (complete 100)
  380.  
  381. (message "\n\n\n\n\n\n"
  382. "Installation of emulation software is complete."
  383. )
  384.  
  385. (exit)
  386.